package com.younion.action.consumer;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface RequestConsumer {

	/**
	 * consume the request
	 * @param request
	 * @param response
	 * @return
	 */
	String consume(HttpServletRequest request, HttpServletResponse response) throws Exception;

	/**
	 * execute the request which will behind the consume method
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 */
	String execute(HttpServletRequest request, HttpServletResponse response) throws Exception;

}
